package com.company.cloud.behavior.modules.app.controller.req;

import com.company.cloud.common.bean.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@Getter
@Setter
public class CommentSaveParam extends BaseParam {

    @ApiModelProperty(value = "评论对象类型", required = true)
    @NotEmpty(message = "评论对象类型不能为空")
    private String objType;

    @ApiModelProperty(value = "评论对象编号", required = true)
    @NotEmpty(message = "评论对象编号不能为空")
    private String objNo;

    @ApiModelProperty(value = "上级评论ID")
    private Integer parentId;

    @ApiModelProperty(value = "评论内容", required = true)
    @NotEmpty(message = "#评论内容不能为空")
    private String content;

    @ApiModelProperty(value = "评论图片")
    private List<String> image;

}
